Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My mysql
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

Writing Laravel Migrations That Are Safe to Run Twice and Easy to Roll Back

Writing Laravel Migrations That Are Safe to Run Twice and Easy to Roll Back

Blog Summary

In MySQL, a migration that fails halfway stays half-applied, and Laravel thinks it never ran. Five habits make retries and rollbacks boring again: small migrations, guards, honest down methods, separate data scripts and CI round trips.

Read more
  • 86
  • 43
  • 16

UUID vs ULID vs Auto-Increment: Choosing IDs That Don't Race, Leak or Slow You Down

UUID vs ULID vs Auto-Increment: Choosing IDs That Don't Race, Leak or Slow You Down

Blog Summary

Auto-increment IDs leak your volume, random UUIDs can hurt insert performance, and neither is a security fix on its own. Here's how UUID, UUIDv7, ULID and plain integers really compare, and the hybrid that often wins.

Read more
  • 15
  • 100
  • 3

Seven Mistakes When Building Search Features (and What to Do Instead)

Seven Mistakes When Building Search Features (and What to Do Instead)

Blog Summary

Search looks like a lunchtime feature: one input, one LIKE query. Then real data arrives and it's slow, badly ranked and allergic to typos. Seven common search mistakes and the fixes, from FULLTEXT to Laravel Scout.

Read more
  • 131
  • 148
  • 11

Handling Money in Code: Integers, Decimals and Rounding Done Right

Handling Money in Code: Integers, Decimals and Rounding Done Right

Blog Summary

In PHP, intval(19.99 * 100) gives you 1998. That missing unit is how money bugs start. Why floats and money don't mix, how to use minor units and DECIMAL columns, and the rounding rules that keep invoices adding up.

Read more
  • 48
  • 83
  • 8

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Blog Summary

An Arabic name goes in, four question marks come out. Encoding bugs leave fingerprints: here's how to read them, why MySQL's utf8 isn't UTF-8, and the PHP string traps that cut letters in half.

Read more
  • 120
  • 44
  • 4

Database Normalization Explained With a Real Example: Tenants, Units and Contracts

Database Normalization Explained With a Real Example: Tenants, Units and Contracts

Blog Summary

Every messy database starts as a spreadsheet. Take a tenancy contracts sheet through 1NF, 2NF and 3NF step by step, see the anomalies each form removes, and learn when denormalizing on purpose is the right call.

Read more
  • 60
  • 81
  • 18

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close